﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/RedesignedMaster.Master" Inherits="System.Web.Mvc.ViewPage<final_darskade.Models.course>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ویرایش درس
</asp:Content>

<asp:Content ID = "breadcrumb" ContentPlaceHolderID = "Breadcrumbs" runat = "server">
    <a href = "/">صفحه اصلی</a> > <a href = "/Course/">مدیریت دروس</a> > <a href = "/Course/Edit?course_id=<%=Model.course_id%>">ویرایش درس</a>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form name = "createform" method = "post" class = "validateform" action = "Edit" onsubmit="convertfarsinumbers()">
        <fieldset>
            <legend>مشخصات درس</legend>
            <div class = "editor-label">شماره درس:</div>
            <div class = "editor-field">
                <input name = "course_id" value = "<%=Model.course_id%>" disabled = "disabled" />
                <input name = "course_id" value = "<%=Model.course_id%>" type = "hidden" />
            </div>
            <div class = "editor-label">نام درس:</div>
            <div class = "editor-field">
                <input class = "validate[required]" id = "name" name = "name" value = "<%=Model.name%>"/>
            </div>
            <div class = "editor-label">رشته:</div>
            <div class = "editor-field">
                <input class = "validate[required]" id = "field" name = "field" value = "<%=Model.field%>"/>
            </div>
            <div class = "editor-label">تعداد واحد:</div>
            <div class = "editor-field">
                <input class = "validate[required,custom[farsinumber]] farsinumber" id = "unit" name = "unit" value = "<%=Model.unit%>"/>
            </div>
            
            <input name = "button" value = "ثبت تغییرات" type = "submit" />
        </fieldset>
    </form>
</asp:Content>
